{include file="header.html"}

<div class="page-header">
	<h6>
		统计报表
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			报表
		</small>

	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="statistics" />
<input type="hidden" name="act" id="act" value="sales" />
<input type="text" name="year" id="dtyear" value="{$year}" placeholder="选择年份" />
<input type="text" name="month" id="dtmonth" value="{$month}" placeholder="选择月份" />
排序:
<select name="sort">
	<option value="1">销售额</option>
	<option value="2">销量</option>
</select>
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th>排名</th>
            <th>项目名称</th>
            <th>销量</th>
            <th>销售额</th>
        </tr>
    </thead>

    <tbody>
        {foreach from=$row key=k item=rs}
        <tr>
            <td>{$k +1}</td>
            <td>{$rs.goods_name}</td>
            <td>{$rs.quantity}</td>
            <td>{$rs.price}</td>
        </tr>
        {foreachelse}
        <tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
        {/foreach}  
        
    </tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}
<script>
$(function(){
    $('#dtyear').datepicker({
        just:'year',format:'yyyy'
    });
    $('#dtmonth').datepicker({
        just:'month',changeYear:false,format:'mm'
    });
});
</script>